improve x86's alloc_vcpu_guest_context()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Sep 2015 10:42:21 +0000 (12:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Sep 2015 10:42:21 +0000 (12:42 +0200)
commit0ac27e8457674b9266c908eaa9fc4054bb3d4dbe
tree93c05c9359cade5e40a5d79b7c7eee8116feb5ea
parent0ffbb4ed178c5f1900d20a14a340631501d251d0
improve x86's alloc_vcpu_guest_context()

This essentially reverts c/s 2037f2adb "x86: introduce
alloc_vcpu_guest_context()", including the newer arm bits, but achieves
the same end goal by using the newer vmalloc() infrastructure.

For both x86 and ARM, {alloc,free}_vcpu_guest_context() become arch-local
static inlines (which avoids a call into a separate translation),
and removes an x86 scalability limit when compiling with a large NR_CPUS.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain.c
xen/arch/x86/domain.c
xen/include/asm-arm/domain.h
xen/include/asm-x86/domain.h
xen/include/asm-x86/fixmap.h
xen/include/xen/domain.h